package org.lex.utils.logging.handler.action;

import java.awt.Event;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;

import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.KeyStroke;

public class ExitAction extends AbstractAction {
	public ExitAction() {
		super();
		this.putValue(Action.NAME, "Exit");
		this.putValue(Action.MNEMONIC_KEY, KeyEvent.VK_X);
		this.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_X, Event.CTRL_MASK));

	}

	public void actionPerformed(ActionEvent e) {
		System.exit(0);
	}
}
